package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.domain.clue.ClueCountDO;
import com.qk.domain.clue.ClueDO;
import com.qk.dto.clue.ClueListDTO;
import com.qk.entity.Clue;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClueMapper extends BaseMapper<Clue> {
    List<Clue> list(Integer clueId, String phone, Integer status, String channel, String assignName);

    void addClue(String phone, Integer channel, Integer activity_id, String name, Integer gender, Integer age, String wechat, String qq);

    //List<ClueDO> selectByPage(ClueListDTO dto);

    //MP的方式分页
    Page<ClueDO> selectByPageMP(Page<ClueDO> pages, ClueListDTO dto);


    ClueCountDO getClueCountDO();
}